import React, { PureComponent } from 'react'
import withRouter from '../hoc/withRouter'

export class User extends PureComponent {
  
  render() {
    const { router } = this.props
    console.log(router.query)
    return (
      <div>
        <h1>
          name: {router.query.name}:
          id: {router.query.id}

        </h1>
      </div>
    )
  }
}

export default withRouter(User)